package com.woniuxy.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Author: 马宇航
 * Do: 生产者消费者模式配置类，只配置了一个队列<br/>
 * DateTime: 22/07/06/0006 下午 3:10
 * Component: 成都蜗牛学苑
 *
 *<img src="https://woniumd.oss-cn-hangzhou.aliyuncs.com/java/mayuhang/202207032300494.png"/>
*/
@Configuration
public class ProducerConsumerConfig {

    @Bean
    public Queue myQueue(){
        return new Queue("pcqueue");
    }
}
